package com.summer.study.leetcode.tree.enums;

/**
 * @auther: 杨杰
 * @date: 2019/7/30 15:57
 * @description: 遍历类型
 */
public enum TraverseType {

    PERORDER(0, "先序遍历"), INORDER(1, "中序遍历"), AFTERORDER(2, "后序遍历");

    private int id;

    private String name;

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    TraverseType(int id, String name) {
        this.id = id;
        this.name = name;
    }
}
